package com.jsu.springboot_crop.service.impl;

import com.jsu.springboot_crop.dao.BankUserDao;
import com.jsu.springboot_crop.entity.BankUser;
import com.jsu.springboot_crop.service.BankUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author js
 * @name BankUserServiceImpl
 * @Date 2023/8/26 15:37
 */
@Service
public class BankUserServiceImpl implements BankUserService {
    @Autowired
    BankUserDao bankUserDao;
    @Override
    public BankUser selectByPrimaryKey(String userName, Integer bankid) {
        return bankUserDao.selectByPrimaryKey(userName,bankid);
    }

    @Override
    public List<BankUser> selectAllBankUser(Integer bankid) {
        return bankUserDao.selectAllBankUser(bankid);
    }

    @Override
    public int updateByPrimaryKeySelective(BankUser record) {
        return bankUserDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(String userName) {
        return bankUserDao.deleteByPrimaryKey(userName);
    }
}
